package jeons.use.action;



import org.springbyexample.web.servlet.view.tiles2.TilesUrlBasedViewResolver;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/use")
public class UseAction {
	
	
	@Autowired TilesUrlBasedViewResolver tilesUrlBasedViewResolver;
	/**
	 * <PRE>
	 * 1. MethodName : homeIndex
	 * 2. ClassName  : UseAction
	 * 3. Comment   : ������/��Ƽ�̵�� ����Ʈ
	 * 4. �ۼ���    : Administrator
	 * 5. �ۼ���    : 2012. 1. 13. ���� 3:50:29
	 * </PRE>
	 *   @return
	 */
	/*@RequestMapping(value="/home" ,method=RequestMethod.GET)
	public String homeIndex(){
		tilesUrlBasedViewResolver.setTilesDefinitionName("default");
		System.out.println("home");
		return "/use/usehome";
	}*/
	
	/**
	* @Method Name  : homeView
	* @�ۼ���   : 2012. 1. 16.
	* @�ۼ���   : user
	* @�����̷�  : ������/��Ƽ�̵�� �� ������
	* @Method ���� :
	* @return
	*/
/*	@RequestMapping(value="/usehomeview" ,method=RequestMethod.GET)
	public String homeView(Model model){
		tilesUrlBasedViewResolver.setTilesDefinitionName("default");
		model.addAttribute("memory", basictBiz.getMemoryList());
		model.addAttribute("cpu" ,basictBiz.getCpuList());
		model.addAttribute("mainboard", basictBiz.getMainBoardList());
		model.addAttribute("graphic", basictBiz.getGraphicList());
		model.addAttribute("soundnlan", basictBiz.getSoundnLanList());
		model.addAttribute("hard", basictBiz.getHardList());
		model.addAttribute("cdndvd", basictBiz.getCdList());
		model.addAttribute("power", basictBiz.getPowerList());
		model.addAttribute("case", basictBiz.getCaseList());
		return "/use/usehomeview";
	}
	*/
	
	
	
	/*@RequestMapping(value="/test" ,method=RequestMethod.GET)
	public String homeViewtest(Model model){
		model.addAttribute("test", basictBiz.getMemoryList());
		
		model.addAttribute("a", "abcd");
		model.addAttribute("memorydto", new MemoryDTO());
		return "/use/test";
	}*/
	
	/**
	 * <PRE>
	 * 1. MethodName : gameIndex
	 * 2. ClassName  : UseAction
	 * 3. Comment   : �׷���/���ӿ�
	 * 4. �ۼ���    : Administrator
	 * 5. �ۼ���    : 2012. 1. 13. ���� 3:50:57
	 * </PRE>
	 *   @return
	 */
	@RequestMapping(value="/game" ,method=RequestMethod.GET)
	public String gameIndex(){
		System.out.println("game");
		return "/use/usegame";
	}
	
	/**
	 * <PRE>
	 * 1. MethodName : highIndex
	 * 2. ClassName  : UseAction
	 * 3. Comment   : ��޻��
	 * 4. �ۼ���    : Administrator
	 * 5. �ۼ���    : 2012. 1. 13. ���� 3:51:12
	 * </PRE>
	 *   @return
	 */
	@RequestMapping(value="/high" ,method=RequestMethod.GET)
	public String highIndex(){
		System.out.println("home");
		return "/use/usehigh";
	}
	
	/**
	 * <PRE>
	 * 1. MethodName : internetIndex
	 * 2. ClassName  : UseAction
	 * 3. Comment   : ���ͳݿ�
	 * 4. �ۼ���    : Administrator
	 * 5. �ۼ���    : 2012. 1. 13. ���� 3:51:20
	 * </PRE>
	 *   @return
	 */
	@RequestMapping(value="/internet" ,method=RequestMethod.GET)
	public String internetIndex(){
		System.out.println("home");
		return "/use/useinternet";
	}
	
	/**
	 * <PRE>
	 * 1. MethodName : windowIndex
	 * 2. ClassName  : UseAction
	 * 3. Comment   : �����켳ġ
	 * 4. �ۼ���    : Administrator
	 * 5. �ۼ���    : 2012. 1. 13. ���� 3:51:29
	 * </PRE>
	 *   @return
	 */
	@RequestMapping(value="/window" ,method=RequestMethod.GET)
	public String windowIndex(){
		System.out.println("home");
		return "/use/usewindow";
	}
	
	
	
	
}
